package Basic.day03.homework;

public class HomeWork01 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int max = a > b ? a : b;
        System.out.println("两数中较大的数是：" + max);

        if (a > b) {
            System.out.println("较大的数为a,值为:" + a);
        } else {
            System.out.println("较大的数为b,值为:" + b);
            ;
        }
    }
}
